
  var vm = new Vue({
	      el : '#em',
		  data: {
			  	home : ''
			  },
methods : {		
 Paging1 : function(currentPage){
	 $("#con").html("");
   var currentPage=currentPage;
   console.log("进来了么？？？？？？？？？？？"+currentPage);
   var _self = this;
	$.ajax({
		url:'emp/list',
		type:'post',
		dataType:'json',
		data:{'currentPage':currentPage},
		
		success:function(data){
	     	
			_self.home = data.list;
			console.log(_self.home);				 
	laypage({
	     
		  cont: $("#clear"),  //定义分页显示的容器
		  pages:data.totalPage,  //从后台查询得到总页数
		  curr:currentPage,     
		  skin: 'molv', 
		  skip:true, 
		  last:'末页',
		  groups:3,  
		  jump: function(obj, first){ 
		  console.log("==========================");
				
		    if(!first){   
		    	vm.Paging1(obj.curr);
		    }
		  }
		});
//=====================截止 	
		}
	})//=====================ajax结束	
}
}
	 })
  $(document).ready(function(){
		vm.Paging1(1);
})